<!DOCTYPE html>
<html lang="en-US">
    <head>
        <title>Number::Format - Perl extension for formatting numbers - metacpan.org</title>
        <link rel="preload" as="fetch" href="https://metacpan.org/account/login_status" crossorigin="anonymous" />
        <link href="https://metacpan.org/_assets/b8ccceeed47a0652049703d99326a9cea4933443.css" rel="stylesheet" type="text/css">
        <script src="https://metacpan.org/_assets/6bfedafe2d7caa915b7d84f61b45936818e3242e.js" type="text/javascript" defer></script>
        <link rel="alternate" type="application/rss+xml" title="Recent CPAN Uploads of Number-Format - MetaCPAN" href="https://metacpan.org/dist/Number-Format/releases.rss" />
        <link rel="canonical" href="./Number::Format.html" />
        <meta name="description" content="Perl extension for formatting numbers" />
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5">
        <link rel="shortcut icon" href="https://metacpan.org/static/icons/favicon.ico">
        <link rel="apple-touch-icon" sizes="152x152" href="https://metacpan.org/static/icons/apple-touch-icon.png">
        <link rel="search" href="https://metacpan.org/static/opensearch.xml" type="application/opensearchdescription+xml" title="MetaCPAN">
        <script>
          (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
          (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
          m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
          })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

          (function(skey, ga_id){
            ga('create', ga_id, {
              siteSpeedSampleRate : 100,
              storage             : 'none',
              clientId            : localStorage.getItem(skey)
            });
            ga(function(tracker) {
              localStorage.setItem(skey, tracker.get('clientId'));
            });
            ga('send', 'pageview');
          })('ga:clientId', 'UA-27829474-1');
        </script>
<meta name="twitter:card"        content="summary" />
<meta name="twitter:url"         content="https://metacpan.org/pod/Number::Format" />
<meta name="twitter:title"       content="Number::Format" />
<meta name="twitter:description" content="Perl extension for formatting numbers" />
<meta name="twitter:site"        content="metacpan" />
    </head>
    <body>
        <nav class="navbar navbar-default" role="navigation">
            <div class="header-logo-large hidden-xs">
              <a href="https://metacpan.org/" tabindex="0">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#logo" />
                </svg>
              </a>
            </div>
            <div class="header-logo-icon visible-xs">
              <a href="https://metacpan.org/">
                <svg class="logo" aria-label="MetaCPAN">
                  <use class="logo" href="/static/images/metacpan-logo.svg#dots" />
                </svg>
              </a>
            </div>
            <ul class="nav navbar-nav menu-items hidden-xs hidden-sm">
              <li><a href="https://metacpan.org/about">About</a></li>
              <li><a href="https://metacpan.org/about/sponsors">Sponsor</a></li>
              <li><a href="https://grep.metacpan.org/">grep::cpan</a></li>
              <li><a href="https://metacpan.org/recent">Recent</a></li>
              <li><a href="https://metacpan.org/about/faq">FAQ</a></li>
              <li><a href="https://metacpan.org/tools">Tools</a></li>
              <li><a href="https://fastapi.metacpan.org/">API</a></li>
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <button type="button" class="searchbar-btn visible-xs visible-sm">
                    <i class="fa fa-search button-fa-icon"></i>
                </button>
                <form action="https://metacpan.org/search" class="searchbar-form visible-md visible-lg search-form form-horizontal">
                   <input type="hidden" name="size" id="metacpan_search-size" value="20">
                  <div class="form-group">
                      <div class="search-group">
                        <i class="fa fa-search"></i>
                        <input type="text" name="q" placeholder="Search the CPAN" size="41" autocorrect="off" autocapitalize="off" spellcheck="false" id="metacpan_search-input" class="form-control" value="">
                      </div>
                  </div>
                </form>
                    <li class="icon-slidepanel visible-xs visible-sm">
                      <button data-toggle="slidepanel" data-target=".slidepanel">
                        <span class="button-fa-icon">
                          <i class="fa fa-bars slidepanel-open"></i>
                          <i class="fa fa-times slidepanel-close"></i>
                        </span>
                      </button>
                    </li>
                <form action="https://metacpan.org/account/logout" method="POST" id="metacpan-logout"></form>
                <li class="dropdown logged_in" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon logged-in-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li><a href="https://metacpan.org/account/identities">Identities</a></li>
                        <li><a href="https://metacpan.org/account/profile">Profile</a></li>
                        <li><a href="https://metacpan.org/account/favorite/list">Favorites</a></li>
                        <li>
                            <a href="./Number::Format.html#" type="button" onclick="$('#metacpan-logout').submit(); return false">
                              Logout
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_out" style="display: none;">
                    <button type="button" class="dropdown-toggle" data-toggle="dropdown">
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                      <i class="fas fa-chevron-down"></i>
                    </button>
                    <ul class="dropdown-menu">
                        <li>
                            <a href="https://metacpan.org/login/github">
                                <i class="fab fa-github fa-fw"></i>
                                GitHub
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/twitter">
                                <i class="fab fa-twitter fa-fw"></i>
                                Twitter
                            </a>
                        </li>
                        <li>
                            <a href="https://metacpan.org/login/google">
                                <i class="fab fa-google fa-fw"></i>
                                Google
                            </a>
                        </li>
                    </ul>
                </li>
                <li class="dropdown logged_placeholder">
                    <button>
                      <i class="fa fa-user button-fa-icon" aria-hidden="true"></i>
                    </button>
                </li>
            </ul>
        </nav>
        <div class="page-content ">
          <!--
          <div class="top-notify-banner">
            <i class="fas fa-info-circle"></i>
          </div>
          -->
          <nav class="sidebar">
            <div class="slidepanel">
              <ul class="nav-list ">
    <li class="nav-header no-margin-top">
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The date that this version of Number-Format was released.">
      <span class="relatize">26 May 2023 01:00:16 UTC</span>
    </li>
  <li>
    Distribution: <a href="https://metacpan.org/dist/Number-Format">Number-Format</a>
  </li>
  <li>
    Module version: 1.76
  </li>
  <li>
    <a data-keyboard-shortcut="g s" href="https://metacpan.org/dist/Number-Format/source/Format.pm">Source</a>
    (<a href="https://metacpan.org/dist/Number-Format/source/Format.pm?raw=1">raw</a>)
  </li>
  <li>
    <a data-keyboard-shortcut="g b" href="https://metacpan.org/dist/Number-Format/source">Browse</a>
    (<a href="https://metacpan.org/dist/Number-Format/source?raw=1">raw</a>)
  </li>
    <li>
      <a data-keyboard-shortcut="g c" href="https://metacpan.org/dist/Number-Format/changes">Changes</a>
    </li>
    <li>
      <a class="nopopup" href="https://metacpan.org/dist/Number-Format/contribute">How to Contribute</a>
    </li>
    <li>
        <a rel="noopener nofollow" data-keyboard-shortcut="g r" href="https://github.com/billward/number-format-perl">Repository</a>
    </li>
    <li>
      <a rel="noopener nofollow" data-keyboard-shortcut="g i" href="https://rt.cpan.org/NoAuth/Bugs.html?Dist=Number-Format">Issues</a>
      (21)
    </li>
    <li>
      <a rel="noopener nofollow" href="http://matrix.cpantesters.org/?dist=Number-Format+1.76" title="Matrix">Testers</a>
        <span title="(pass / fail / na)">(<a rel="noopener nofollow" href="https://www.cpantesters.org/distro/N/Number-Format.html?oncpan=1&amp;distmat=1&amp;version=1.76&amp;grade=2" style="color: #090">1618</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/N/Number-Format.html?oncpan=1&amp;distmat=1&amp;version=1.76&amp;grade=3" style="color: #900">117</a> / <a rel="noopener nofollow" href="https://www.cpantesters.org/distro/N/Number-Format.html?oncpan=1&amp;distmat=1&amp;version=1.76&amp;grade=4">12</a>)</span>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpants.cpanauthors.org/release/RJBS/Number-Format-1.76">Kwalitee</a>
    </li>
    <li>
      <div class="ttip" data-toggle="tooltip" data-placement="bottom" title="The # people with an indexing permission on Number-Format who have released something to CPAN in the last 2 years (i.e. the # people likely able to release critical fixes in a timely manner)">
      Bus factor: 1
      </div>
    </li>
    <li>
      <a rel="noopener nofollow" href="http://cpancover.com/latest/Number-Format-1.76/index.html">87.89% Coverage </a>
    </li>
    <li>
      License: perl_5
    </li>
    <li class="nav-header">Activity</li>
    <li>
<div class="activity-graph">
    <img src="https://metacpan.org/dist/Number-Format/activity.svg?res=month" />
    <div class="comment">24 month</div>
</div>
    </li>
    <li class="nav-header">Tools</li>
    <li>
      <a itemprop="downloadUrl" href="https://cpan.metacpan.org/authors/id/R/RJ/RJBS/Number-Format-1.76.tar.gz">
      Download (<span itemprop="fileSize">24.36KB</span>)</a>
    </li>
    <li>
      <a href="https://explorer.metacpan.org/?url=%2Fmodule%2FRJBS%2FNumber-Format-1.76%2FFormat.pm">
        MetaCPAN Explorer
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Number-Format/permissions">
        Permissions
      </a>
    </li>
    <li>
      <a href="https://metacpan.org/dist/Number-Format/releases.rss">
        Subscribe to distribution
      </a>
    </li>
    <li>
      <button class="btn btn-link" data-toggle="modal" data-target="#metacpan_install-instructions-dialog">
        Install Instructions
      </button>
    </li>
    <li>
      <form action="https://metacpan.org/search">
        <input type="hidden" name="q" value="dist:Number-Format">
        <input type="search" name="q" placeholder="Search distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
      </form>
    </li>
    <li>
      <form action="https://grep.metacpan.org/search">
        <input type="hidden" name="qd" value="Number-Format">
        <input type="hidden" name="source" value="metacpan">
        <input type="search" name="q" placeholder="grep distribution" class="form-control tool-bar-form">
        <input type="submit" style="display: none">
     </form>
    </li>
    <li class="version-jump">
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/Format.pm&#39;" class="form-control tool-bar-form">
  <option disabled selected>Jump to version</option>
<option
  disabled
  value="RJBS/Number-Format-1.76"
>1.76
  (RJBS on 2023-05-26)</option>
<option
  
  value="WRW/Number-Format-1.75"
>1.75
  (WRW on 2015-06-25)</option>
<option
  
  value="WRW/Number-Format-1.73"
>1.73
  (WRW on 2009-09-26)</option>
<optgroup label="BackPAN">'
<option
  
  value="WRW/Number-Format-1.72a"
>1.72a
  (WRW on 2009-05-05)</option>
<option
  
  value="WRW/Number-Format-1.72"
>1.72
  (WRW on 2009-05-05)</option>
<option
  
  value="WRW/Number-Format-1.71"
>1.71
  (WRW on 2009-05-03)</option>
<option
  
  value="WRW/Number-Format-1.70"
>1.70
  (WRW on 2009-02-13)</option>
<option
  
  value="WRW/Number-Format-1.63"
>1.63
  (WRW on 2009-02-10)</option>
<option
  
  value="WRW/Number-Format-1.62"
>1.62
  (WRW on 2009-02-09)</option>
<option
  
  value="WRW/Number-Format-1.61a"
>1.61a
  (WRW on 2008-12-30)</option>
<option
  
  value="WRW/Number-Format-1.61"
>1.61
  (WRW on 2008-12-30)</option>
<option
  
  value="WRW/Number-Format-1.60"
>1.60
  (WRW on 2008-07-03)</option>
<option
  
  value="WRW/Number-Format-1.52"
>1.52
  (WRW on 2006-09-21)</option>
<option
  
  value="WRW/Number-Format-1.51"
>1.51
  (WRW on 2006-04-26)</option>
<option
  
  value="WRW/Number-Format-1.45"
>1.45
  (WRW on 2002-08-28)</option>
<option
  
  value="WRW/Number-Format-1.44"
>1.44
  (WRW on 2001-12-11)</option>
<option
  
  value="WRW/Number-Format-1.43"
>1.43
  (WRW on 2001-12-11)</option>
<option
  
  value="WRW/Number-Format-1.42"
>1.42
  (WRW on 2000-05-24)</option>
<option
  
  value="WRW/Number-Format-1.41"
>1.41
  (WRW on 1999-03-09)</option>
<option
  
  value="WRW/Number-Format-1.30"
>1.30
  (WRW on 1998-11-17)</option>
<option
  
  value="WRW/Number-Format-1.12"
>1.12
  (WRW on 1998-03-02)</option>
<option
  
  value="WRW/Number-Format-1.10"
>1.10
  (WRW on 1998-02-13)</option>
</optgroup>
</select>
    </li>
    <li class="version-diff">
<select onchange="document.location.href='/release/RJBS/Number-Format-1.76/diff/' + encodeURIComponent(this.value) + '/Format.pm'
" class="form-control tool-bar-form">
  <option disabled selected>Diff with version</option>
<option
  disabled
  value="RJBS/Number-Format-1.76"
>1.76
  (RJBS on 2023-05-26)</option>
<option
  
  value="WRW/Number-Format-1.75"
>1.75
  (WRW on 2015-06-25)</option>
<option
  
  value="WRW/Number-Format-1.73"
>1.73
  (WRW on 2009-09-26)</option>
<optgroup label="BackPAN">'
<option
  
  value="WRW/Number-Format-1.72a"
>1.72a
  (WRW on 2009-05-05)</option>
<option
  
  value="WRW/Number-Format-1.72"
>1.72
  (WRW on 2009-05-05)</option>
<option
  
  value="WRW/Number-Format-1.71"
>1.71
  (WRW on 2009-05-03)</option>
<option
  
  value="WRW/Number-Format-1.70"
>1.70
  (WRW on 2009-02-13)</option>
<option
  
  value="WRW/Number-Format-1.63"
>1.63
  (WRW on 2009-02-10)</option>
<option
  
  value="WRW/Number-Format-1.62"
>1.62
  (WRW on 2009-02-09)</option>
<option
  
  value="WRW/Number-Format-1.61a"
>1.61a
  (WRW on 2008-12-30)</option>
<option
  
  value="WRW/Number-Format-1.61"
>1.61
  (WRW on 2008-12-30)</option>
<option
  
  value="WRW/Number-Format-1.60"
>1.60
  (WRW on 2008-07-03)</option>
<option
  
  value="WRW/Number-Format-1.52"
>1.52
  (WRW on 2006-09-21)</option>
<option
  
  value="WRW/Number-Format-1.51"
>1.51
  (WRW on 2006-04-26)</option>
<option
  
  value="WRW/Number-Format-1.45"
>1.45
  (WRW on 2002-08-28)</option>
<option
  
  value="WRW/Number-Format-1.44"
>1.44
  (WRW on 2001-12-11)</option>
<option
  
  value="WRW/Number-Format-1.43"
>1.43
  (WRW on 2001-12-11)</option>
<option
  
  value="WRW/Number-Format-1.42"
>1.42
  (WRW on 2000-05-24)</option>
<option
  
  value="WRW/Number-Format-1.41"
>1.41
  (WRW on 1999-03-09)</option>
<option
  
  value="WRW/Number-Format-1.30"
>1.30
  (WRW on 1998-11-17)</option>
<option
  
  value="WRW/Number-Format-1.12"
>1.12
  (WRW on 1998-03-02)</option>
<option
  
  value="WRW/Number-Format-1.10"
>1.10
  (WRW on 1998-02-13)</option>
</optgroup>
</select>
    </li>

    <li>
<ul class="dependencies">
  <li class="nav-header">Dependencies</li>
  <li><a href="https://metacpan.org/pod/Carp" title="Carp" class="ellipsis">Carp</a></li>
  <li><a href="https://metacpan.org/pod/POSIX" title="POSIX" class="ellipsis">POSIX</a></li>
  <li><i class="ttip" title="dynamic_config enabled">and possibly others</i></li>
  <li>
    <hr>
  </li>
  <li>
    <a href="https://metacpan.org/module/Number::Format/requires">Reverse dependencies</a>
  </li>
  <li>
    <a href="http://deps.cpantesters.org/?module=Number%3A%3AFormat">CPAN Testers List</a>
  </li>
  <li>
    <a href="https://cpandeps.grinnz.com/?dist=Number-Format">Dependency graph</a>
  </li>
</ul>
    </li>
    <li class="nav-header">Permalinks</li>
    <li>
      <a href="https://metacpan.org/release/RJBS/Number-Format-1.76/view/Format.pm">This version</a>
    </li>
    <li>
      <a href="./Number::Format.html">Latest version</a>
    </li>
    <li>
<div class="plussers">
<div class="nav-header">++ed by:</div>
<div>
<a class="display-all" href="https://metacpan.org/author/ARJONES"><img src="https://www.gravatar.com/avatar/779fdd029141571e2650d9060978c1a1?d=identicon&amp;s=20" title="ARJONES" alt="ARJONES"></a>
<a class="display-all" href="https://metacpan.org/author/SYP"><img src="https://www.gravatar.com/avatar/9b6fa62677be03c25ee1af4d95472042?d=identicon&amp;s=20" title="SYP" alt="SYP"></a>
<a class="display-all" href="https://metacpan.org/author/RRWO"><img src="https://www.gravatar.com/avatar/4a5274bc5d690ee3d619f044778771a7?d=identicon&amp;s=20" title="RRWO" alt="RRWO"></a>
<a class="display-all" href="https://metacpan.org/author/XAOC"><img src="https://www.gravatar.com/avatar/990db8b0e06746b7d54c36f0603140e1?d=identicon&amp;s=20" title="XAOC" alt="XAOC"></a>
<a class="display-all" href="https://metacpan.org/author/PWBENNETT"><img src="https://www.gravatar.com/avatar/41a085cce4a7061cf4ee49d02b9bed0e?d=identicon&amp;s=20" title="PWBENNETT" alt="PWBENNETT"></a>
</div>
<!-- Display counts of plussers-->
<div>
    <a href="https://metacpan.org/dist/Number-Format/plussers">11 PAUSE users</a>
</div>
<div>
    3 non-PAUSE users
</div>
</div>
    </li>
    <li>
<div id="metacpan_contributors">
  <div>
    <button class="btn-link"
      onclick="$(this).hide(); $('#metacpan_contributors ul').slideDown(); return false;"
    >and 1 contributors</button>
  </div>
  <ul style="display: none">
    <li class="contributor"
      data-cpan-author="WRW"
      data-contrib-email="wrw@cpan.org"
    >
      <a href="https://metacpan.org/author/WRW" class="cpan-author">
      <img class="gravatar" width="20" height="20" src="https://www.gravatar.com/avatar/b95b861da11548bbb1d67e7794ef74d4?d=identicon&amp;s=20" />
      William R. Ward
      </a>
    </li>
  </ul>
</div>
    </li>
              </ul>
            </div>
          </nav>
          <div class="content-navigation">
<div class="breadcrumbs">
  <span>
    <a data-keyboard-shortcut="g a" rel="author" href="https://metacpan.org/author/RJBS" class="author-name">Ricardo SIGNES 😄</a>
  </span>
  <span>&nbsp;/&nbsp;</span>
  <div class="release dist-release status-latest maturity-released">
    <span class="dropdown"><b class="caret"></b></span>
<select onchange="document.location.href=&#39;/release/&#39;+this.value+&#39;/view/Format.pm&#39;" class="">
<option
  selected
  value="RJBS/Number-Format-1.76"
>1.76
  (RJBS on 2023-05-26)</option>
<option
  
  value="WRW/Number-Format-1.75"
>1.75
  (WRW on 2015-06-25)</option>
<option
  
  value="WRW/Number-Format-1.73"
>1.73
  (WRW on 2009-09-26)</option>
<optgroup label="BackPAN">'
<option
  
  value="WRW/Number-Format-1.72a"
>1.72a
  (WRW on 2009-05-05)</option>
<option
  
  value="WRW/Number-Format-1.72"
>1.72
  (WRW on 2009-05-05)</option>
<option
  
  value="WRW/Number-Format-1.71"
>1.71
  (WRW on 2009-05-03)</option>
<option
  
  value="WRW/Number-Format-1.70"
>1.70
  (WRW on 2009-02-13)</option>
<option
  
  value="WRW/Number-Format-1.63"
>1.63
  (WRW on 2009-02-10)</option>
<option
  
  value="WRW/Number-Format-1.62"
>1.62
  (WRW on 2009-02-09)</option>
<option
  
  value="WRW/Number-Format-1.61a"
>1.61a
  (WRW on 2008-12-30)</option>
<option
  
  value="WRW/Number-Format-1.61"
>1.61
  (WRW on 2008-12-30)</option>
<option
  
  value="WRW/Number-Format-1.60"
>1.60
  (WRW on 2008-07-03)</option>
<option
  
  value="WRW/Number-Format-1.52"
>1.52
  (WRW on 2006-09-21)</option>
<option
  
  value="WRW/Number-Format-1.51"
>1.51
  (WRW on 2006-04-26)</option>
<option
  
  value="WRW/Number-Format-1.45"
>1.45
  (WRW on 2002-08-28)</option>
<option
  
  value="WRW/Number-Format-1.44"
>1.44
  (WRW on 2001-12-11)</option>
<option
  
  value="WRW/Number-Format-1.43"
>1.43
  (WRW on 2001-12-11)</option>
<option
  
  value="WRW/Number-Format-1.42"
>1.42
  (WRW on 2000-05-24)</option>
<option
  
  value="WRW/Number-Format-1.41"
>1.41
  (WRW on 1999-03-09)</option>
<option
  
  value="WRW/Number-Format-1.30"
>1.30
  (WRW on 1998-11-17)</option>
<option
  
  value="WRW/Number-Format-1.12"
>1.12
  (WRW on 1998-03-02)</option>
<option
  
  value="WRW/Number-Format-1.10"
>1.10
  (WRW on 1998-02-13)</option>
</optgroup>
</select>
    <a data-keyboard-shortcut="g d" class="release-name" href="https://metacpan.org/dist/Number-Format">Number-Format-1.76</a>
  </div>
<span class="river-gauge-gauge">
  <svg width="24px"
       height="15px"
       version="1.1"
       xmlns="http://www.w3.org/2000/svg"
       xmlns:xlink="http://www.w3.org/1999/xlink">

    <g>
      <title>        River stage three &#10;
          • 38 direct dependents &#10;          • 133 total dependents
      </title>

      <rect x="0"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="5"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="10"  y="0" width="4" height="15" fill="#7ea3f2" />
      <rect x="15"  y="0" width="4" height="15" fill="#e4e2e2" />
      <rect x="20"  y="0" width="4" height="15" fill="#e4e2e2" />
    </g>
  </svg>

</span>
<div id="Number-Format-fav" class="logged_in">
<form action="https://metacpan.org/account/favorite/add" style="display: inline" onsubmit="return favDistribution(this)">
    <input type="hidden" name="remove" value="0">
    <input type="hidden" name="release" value="Number-Format-1.76">
    <input type="hidden" name="author" value="RJBS">
    <input type="hidden" name="distribution" value="Number-Format">
    <button type="submit" class="favorite highlight"><span>14</span> ++</button>
</form>
</div>
<div class="logged_out">
<a href="./Number::Format.html" onclick="alert('Please sign in to add favorites'); return false" class="favorite highlight">
<span>14</span> ++</a>
</div>
   / <span>Number::Format</span>
</div>
          </div>
          <main class="content">


<nav class="toc">
  <div class="toc-header"><strong>Contents</strong></div>
<ul>
  <li><a href="./Number::Format.html#NAME">NAME</a></li>
  <li><a href="./Number::Format.html#SYNOPSIS">SYNOPSIS</a></li>
  <li><a href="./Number::Format.html#REQUIRES">REQUIRES</a></li>
  <li><a href="./Number::Format.html#DESCRIPTION">DESCRIPTION</a></li>
  <li><a href="./Number::Format.html#EXPORTS">EXPORTS</a></li>
  <li><a href="./Number::Format.html#METHODS">METHODS</a></li>
  <li><a href="./Number::Format.html#CAVEATS">CAVEATS</a></li>
  <li><a href="./Number::Format.html#BUGS">BUGS</a></li>
  <li><a href="./Number::Format.html#AUTHOR">AUTHOR</a></li>
  <li><a href="./Number::Format.html#SEE-ALSO">SEE ALSO</a></li>
</ul></nav>
<div class="pod anchors">
<h1 id="NAME">NAME</h1>

<p>Number::Format - Perl extension for formatting numbers</p>

<h1 id="SYNOPSIS">SYNOPSIS</h1>

<pre><code>  use Number::Format;
  my $x = new Number::Format %args;
  $formatted = $x-&gt;round($number, $precision);
  $formatted = $x-&gt;format_number($number, $precision, $trailing_zeroes);
  $formatted = $x-&gt;format_negative($number, $picture);
  $formatted = $x-&gt;format_picture($number, $picture);
  $formatted = $x-&gt;format_price($number, $precision, $symbol);
  $formatted = $x-&gt;format_bytes($number, $precision);
  $number    = $x-&gt;unformat_number($formatted);

  use Number::Format qw(:subs);
  $formatted = round($number, $precision);
  $formatted = format_number($number, $precision, $trailing_zeroes);
  $formatted = format_negative($number, $picture);
  $formatted = format_picture($number, $picture);
  $formatted = format_price($number, $precision, $symbol);
  $formatted = format_bytes($number, $precision);
  $number    = unformat_number($formatted);</code></pre>

<h1 id="REQUIRES">REQUIRES</h1>

<p>Perl, version 5.8 or higher.</p>

<p>POSIX.pm to determine locale settings.</p>

<p>Carp.pm is used for some error reporting.</p>

<h1 id="DESCRIPTION">DESCRIPTION</h1>

<p>These functions provide an easy means of formatting numbers in a manner suitable for displaying to the user.</p>

<p>There are two ways to use this package. One is to declare an object of type Number::Format, which you can think of as a formatting engine. The various functions defined here are provided as object methods. The constructor <code>new()</code> can be used to set the parameters of the formatting engine. Valid parameters are:</p>

<pre><code>  THOUSANDS_SEP     - character inserted between groups of 3 digits
  DECIMAL_POINT     - character separating integer and fractional parts
  MON_THOUSANDS_SEP - like THOUSANDS_SEP, but used for format_price
  MON_DECIMAL_POINT - like DECIMAL_POINT, but used for format_price
  INT_CURR_SYMBOL   - character(s) denoting currency (see format_price())
  DECIMAL_DIGITS    - number of digits to the right of dec point (def 2)
  DECIMAL_FILL      - boolean; whether to add zeroes to fill out decimal
  NEG_FORMAT        - format to display negative numbers (def ``-x&#39;&#39;)
  KILO_SUFFIX       - suffix to add when format_bytes formats kilobytes (trad)
  MEGA_SUFFIX       -    &quot;    &quot;  &quot;    &quot;        &quot;         &quot;    megabytes (trad)
  GIGA_SUFFIX       -    &quot;    &quot;  &quot;    &quot;        &quot;         &quot;    gigabytes (trad)
  KIBI_SUFFIX       - suffix to add when format_bytes formats kibibytes (iec)
  MEBI_SUFFIX       -    &quot;    &quot;  &quot;    &quot;        &quot;         &quot;    mebibytes (iec)
  GIBI_SUFFIX       -    &quot;    &quot;  &quot;    &quot;        &quot;         &quot;    gibibytes (iec)</code></pre>

<p>They may be specified in upper or lower case, with or without a leading hyphen ( - ).</p>

<p>If <code>THOUSANDS_SEP</code> is set to the empty string, format_number will not insert any separators.</p>

<p>The defaults for <code>THOUSANDS_SEP</code>, <code>DECIMAL_POINT</code>, <code>MON_THOUSANDS_SEP</code>, <code>MON_DECIMAL_POINT</code>, and <code>INT_CURR_SYMBOL</code> come from the POSIX locale information (see <a href="https://metacpan.org/pod/perllocale">perllocale</a>). If your POSIX locale does not provide <code>MON_THOUSANDS_SEP</code> and/or <code>MON_DECIMAL_POINT</code> fields, then the <code>THOUSANDS_SEP</code> and/or <code>DECIMAL_POINT</code> values are used for those parameters. Formerly, POSIX was optional but this caused problems in some cases, so it is now required. If this causes you hardship, please contact the author of this package at &lt;SwPrAwM@cpan.org&gt; (remove &quot;SPAM&quot; to get correct email address) for help.</p>

<p>If any of the above parameters are not specified when you invoke <code>new()</code>, then the values are taken from package global variables of the same name (e.g. <code>$DECIMAL_POINT</code> is the default for the <code>DECIMAL_POINT</code> parameter). If you use the <code>:vars</code> keyword on your <code>use Number::Format</code> line (see non-object-oriented example below) you will import those variables into your namesapce and can assign values as if they were your own local variables. The default values for all the parameters are:</p>

<pre><code>  THOUSANDS_SEP     = &#39;,&#39;
  DECIMAL_POINT     = &#39;.&#39;
  MON_THOUSANDS_SEP = &#39;,&#39;
  MON_DECIMAL_POINT = &#39;.&#39;
  INT_CURR_SYMBOL   = &#39;USD&#39;
  DECIMAL_DIGITS    = 2
  DECIMAL_FILL      = 0
  NEG_FORMAT        = &#39;-x&#39;
  KILO_SUFFIX       = &#39;K&#39;
  MEGA_SUFFIX       = &#39;M&#39;
  GIGA_SUFFIX       = &#39;G&#39;
  KIBI_SUFFIX       = &#39;KiB&#39;
  MEBI_SUFFIX       = &#39;MiB&#39;
  GIBI_SUFFIX       = &#39;GiB&#39;</code></pre>

<p>Note however that when you first call one of the functions in this module <i>without</i> using the object-oriented interface, further setting of those global variables will have no effect on non-OO calls. It is recommended that you use the object-oriented interface instead for fewer headaches and a cleaner design.</p>

<p>The <code>DECIMAL_FILL</code> and <code>DECIMAL_DIGITS</code> values are not set by the Locale system, but are definable by the user. They affect the output of <code>format_number()</code>. Setting <code>DECIMAL_DIGITS</code> is like giving that value as the <code>$precision</code> argument to that function. Setting <code>DECIMAL_FILL</code> to a true value causes <code>format_number()</code> to append zeroes to the right of the decimal digits until the length is the specified number of digits.</p>

<p><code>NEG_FORMAT</code> is only used by <code>format_negative()</code> and is a string containing the letter &#39;x&#39;, where that letter will be replaced by a positive representation of the number being passed to that function. <code>format_number()</code> and <code>format_price()</code> utilize this feature by calling <code>format_negative()</code> if the number was less than 0.</p>

<p><code>KILO_SUFFIX</code>, <code>MEGA_SUFFIX</code>, and <code>GIGA_SUFFIX</code> are used by <code>format_bytes()</code> when the value is over 1024, 1024*1024, or 1024*1024*1024, respectively. The default values are &quot;K&quot;, &quot;M&quot;, and &quot;G&quot;. These apply in the default &quot;traditional&quot; mode only. Note: TERA or higher are not implemented because of integer overflows on 32-bit systems.</p>

<p><code>KIBI_SUFFIX</code>, <code>MEBI_SUFFIX</code>, and <code>GIBI_SUFFIX</code> are used by <code>format_bytes()</code> when the value is over 1024, 1024*1024, or 1024*1024*1024, respectively. The default values are &quot;KiB&quot;, &quot;MiB&quot;, and &quot;GiB&quot;. These apply in the &quot;iso60027&quot;&quot; mode only. Note: TEBI or higher are not implemented because of integer overflows on 32-bit systems.</p>

<p>The only restrictions on <code>DECIMAL_POINT</code> and <code>THOUSANDS_SEP</code> are that they must not be digits and must not be identical. There are no restrictions on <code>INT_CURR_SYMBOL</code>.</p>

<p>For example, a German user might include this in their code:</p>

<pre><code>  use Number::Format;
  my $de = new Number::Format(-thousands_sep   =&gt; &#39;.&#39;,
                              -decimal_point   =&gt; &#39;,&#39;,
                              -int_curr_symbol =&gt; &#39;DEM&#39;);
  my $formatted = $de-&gt;format_number($number);</code></pre>

<p>Or, if you prefer not to use the object oriented interface, you can do this instead:</p>

<pre><code>  use Number::Format qw(:subs :vars);
  $THOUSANDS_SEP   = &#39;.&#39;;
  $DECIMAL_POINT   = &#39;,&#39;;
  $INT_CURR_SYMBOL = &#39;DEM&#39;;
  my $formatted = format_number($number);</code></pre>

<h1 id="EXPORTS">EXPORTS</h1>

<p>Nothing is exported by default. To export the functions or the global variables defined herein, specify the function name(s) on the import list of the <code>use Number::Format</code> statement. To export all functions defined herein, use the special tag <code>:subs</code>. To export the variables, use the special tag <code>:vars</code>; to export both subs and vars you can use the tag <code>:all</code>.</p>

<h1 id="METHODS">METHODS</h1>

<dl>

<dt id="new(-%args-)"><a id="new"></a><a id="new---args"></a>new( %args )</dt>
<dd>

<p>Creates a new Number::Format object. Valid keys for %args are any of the parameters described above. Keys may be in all uppercase or all lowercase, and may optionally be preceded by a hyphen (-) character. Example:</p>

<pre><code>  my $de = new Number::Format(-thousands_sep   =&gt; &#39;.&#39;,
                              -decimal_point   =&gt; &#39;,&#39;,
                              -int_curr_symbol =&gt; &#39;DEM&#39;);</code></pre>

</dd>
<dt id="round($number,-$precision)"><a id="round"></a><a id="round-number---precision"></a>round($number, $precision)</dt>
<dd>

<p>Rounds the number to the specified precision. If <code>$precision</code> is omitted, the value of the <code>DECIMAL_DIGITS</code> parameter is used (default value 2). Both input and output are numeric (the function uses math operators rather than string manipulation to do its job), The value of <code>$precision</code> may be any integer, positive or negative. Examples:</p>

<pre><code>  round(3.14159)       yields    3.14
  round(3.14159, 4)    yields    3.1416
  round(42.00, 4)      yields    42
  round(1234, -2)      yields    1200</code></pre>

<p>Since this is a mathematical rather than string oriented function, there will be no trailing zeroes to the right of the decimal point, and the <code>DECIMAL_POINT</code> and <code>THOUSANDS_SEP</code> variables are ignored. To format your number using the <code>DECIMAL_POINT</code> and <code>THOUSANDS_SEP</code> variables, use <code>format_number()</code> instead.</p>

</dd>
<dt id="format_number($number,-$precision,-$trailing_zeroes)"><a id="format_number"></a><a id="format_number-number---precision---trailing_zeroes"></a>format_number($number, $precision, $trailing_zeroes)</dt>
<dd>

<p>Formats a number by adding <code>THOUSANDS_SEP</code> between each set of 3 digits to the left of the decimal point, substituting <code>DECIMAL_POINT</code> for the decimal point, and rounding to the specified precision using <code>round()</code>. Note that <code>$precision</code> is a <i>maximum</i> precision specifier; trailing zeroes will only appear in the output if <code>$trailing_zeroes</code> is provided, or the parameter <code>DECIMAL_FILL</code> is set, with a value that is true (not zero, undef, or the empty string). If <code>$precision</code> is omitted, the value of the <code>DECIMAL_DIGITS</code> parameter (default value of 2) is used.</p>

<p>If the value is too large or great to work with as a regular number, but instead must be shown in scientific notation, returns that number in scientific notation without further formatting.</p>

<p>Examples:</p>

<pre><code>  format_number(12345.6789)             yields   &#39;12,345.68&#39;
  format_number(123456.789, 2)          yields   &#39;123,456.79&#39;
  format_number(1234567.89, 2)          yields   &#39;1,234,567.89&#39;
  format_number(1234567.8, 2)           yields   &#39;1,234,567.8&#39;
  format_number(1234567.8, 2, 1)        yields   &#39;1,234,567.80&#39;
  format_number(1.23456789, 6)          yields   &#39;1.234568&#39;
  format_number(&quot;0.000020000E+00&quot;, 7);&#39; yields   &#39;2e-05&#39;</code></pre>

<p>Of course the output would have your values of <code>THOUSANDS_SEP</code> and <code>DECIMAL_POINT</code> instead of &#39;,&#39; and &#39;.&#39; respectively.</p>

</dd>
<dt id="format_negative($number,-$picture)"><a id="format_negative"></a><a id="format_negative-number---picture"></a>format_negative($number, $picture)</dt>
<dd>

<p>Formats a negative number. Picture should be a string that contains the letter <code>x</code> where the number should be inserted. For example, for standard negative numbers you might use ``<code>-x</code>&#39;&#39;, while for accounting purposes you might use ``<code>(x)</code>&#39;&#39;. If the specified number begins with a ``-&#39;&#39; character, that will be removed before formatting, but formatting will occur whether or not the number is negative.</p>

</dd>
<dt id="format_picture($number,-$picture)"><a id="format_picture"></a><a id="format_picture-number---picture"></a>format_picture($number, $picture)</dt>
<dd>

<p>Returns a string based on <code>$picture</code> with the <code>#</code> characters replaced by digits from <code>$number</code>. If the length of the integer part of $number is too large to fit, the <code>#</code> characters are replaced with asterisks (<code>*</code>) instead. Examples:</p>

<pre><code>  format_picture(100.023, &#39;USD ##,###.##&#39;)   yields   &#39;USD    100.02&#39;
  format_picture(1000.23, &#39;USD ##,###.##&#39;)   yields   &#39;USD  1,000.23&#39;
  format_picture(10002.3, &#39;USD ##,###.##&#39;)   yields   &#39;USD 10,002.30&#39;
  format_picture(100023,  &#39;USD ##,###.##&#39;)   yields   &#39;USD **,***.**&#39;
  format_picture(1.00023, &#39;USD #.###,###&#39;)   yields   &#39;USD 1.002,300&#39;</code></pre>

<p>The comma (,) and period (.) you see in the picture examples should match the values of <code>THOUSANDS_SEP</code> and <code>DECIMAL_POINT</code>, respectively, for proper operation. However, the <code>THOUSANDS_SEP</code> characters in <code>$picture</code> need not occur every three digits; the <i>only</i> use of that variable by this function is to remove leading commas (see the first example above). There may not be more than one instance of <code>DECIMAL_POINT</code> in <code>$picture</code>.</p>

<p>The value of <code>NEG_FORMAT</code> is used to determine how negative numbers are displayed. The result of this is that the output of this function my have unexpected spaces before and/or after the number. This is necessary so that positive and negative numbers are formatted into a space the same size. If you are only using positive numbers and want to avoid this problem, set NEG_FORMAT to &quot;x&quot;.</p>

</dd>
<dt id="format_price($number,-$precision,-$symbol)"><a id="format_price"></a><a id="format_price-number---precision---symbol"></a>format_price($number, $precision, $symbol)</dt>
<dd>

<p>Returns a string containing <code>$number</code> formatted similarly to <code>format_number()</code>, except that the decimal portion may have trailing zeroes added to make it be exactly <code>$precision</code> characters long, and the currency string will be prefixed.</p>

<p>The <code>$symbol</code> attribute may be one of &quot;INT_CURR_SYMBOL&quot; or &quot;CURRENCY_SYMBOL&quot; (case insensitive) to use the value of that attribute of the object, or a string containing the symbol to be used. The default is &quot;INT_CURR_SYMBOL&quot; if this argument is undefined or not given; if set to the empty string, or if set to undef and the <code>INT_CURR_SYMBOL</code> attribute of the object is the empty string, no currency will be added.</p>

<p>If <code>$precision</code> is not provided, the default of 2 will be used. Examples:</p>

<pre><code>  format_price(12.95)   yields   &#39;USD 12.95&#39;
  format_price(12)      yields   &#39;USD 12.00&#39;
  format_price(12, 3)   yields   &#39;12.000&#39;</code></pre>

<p>The third example assumes that <code>INT_CURR_SYMBOL</code> is the empty string.</p>

</dd>
<dt id="format_bytes($number,-%options)"><a id="format_bytes"></a><a id="format_bytes-number---options"></a>format_bytes($number, %options)</dt>
<dd>

</dd>
<dt id="format_bytes($number,-$precision)-#-deprecated"><a id="format_bytes1"></a><a id="format_bytes-number---precision----deprecated"></a>format_bytes($number, $precision) # deprecated</dt>
<dd>

<p>Returns a string containing <code>$number</code> formatted similarly to <code>format_number()</code>, except that large numbers may be abbreviated by adding a suffix to indicate 1024, 1,048,576, or 1,073,741,824 bytes. Suffix may be the traditional K, M, or G (default); or the IEC standard 60027 &quot;KiB,&quot; &quot;MiB,&quot; or &quot;GiB&quot; depending on the &quot;mode&quot; option.</p>

<p>Negative values will result in an error.</p>

<p>The second parameter can be either a hash that sets options, or a number. Using a number here is deprecated and will generate a warning; early versions of Number::Format only allowed a numeric value. A future release of Number::Format will change this warning to an error. New code should use a hash instead to set options. If it is a number this sets the value of the &quot;precision&quot; option.</p>

<p>Valid options are:</p>

<dl>

<dt id="precision">precision</dt>
<dd>

<p>Set the precision for displaying numbers. If not provided, a default of 2 will be used. Examples:</p>

<pre><code>  format_bytes(12.95)                   yields   &#39;12.95&#39;
  format_bytes(12.95, precision =&gt; 0)   yields   &#39;13&#39;
  format_bytes(2048)                    yields   &#39;2K&#39;
  format_bytes(2048, mode =&gt; &quot;iec&quot;)     yields   &#39;2KiB&#39;
  format_bytes(9999999)                 yields   &#39;9.54M&#39;
  format_bytes(9999999, precision =&gt; 1) yields   &#39;9.5M&#39;</code></pre>

</dd>
<dt id="unit">unit</dt>
<dd>

<p>Sets the default units used for the results. The default is to determine this automatically in order to minimize the length of the string. In other words, numbers greater than or equal to 1024 (or other number given by the &#39;base&#39; option, q.v.) will be divided by 1024 and <code>$KILO_SUFFIX</code> or <code>$KIBI_SUFFIX</code> added; if greater than or equal to 1048576 (1024*1024), it will be divided by 1048576 and <code>$MEGA_SUFFIX</code> or <code>$MEBI_SUFFIX</code> appended to the end; etc.</p>

<p>However if a value is given for <code>unit</code> it will use that value instead. The first letter (case-insensitive) of the value given indicates the threshhold for conversion; acceptable values are G (for giga/gibi), M (for mega/mebi), K (for kilo/kibi), or A (for automatic, the default). For example:</p>

<pre><code>  format_bytes(1048576, unit =&gt; &#39;K&#39;) yields     &#39;1,024K&#39;
                                     instead of &#39;1M&#39;</code></pre>

<p>Note that the valid values to this option do not vary even when the suffix configuration variables have been changed.</p>

</dd>
<dt id="base">base</dt>
<dd>

<p>Sets the number at which the <code>$KILO_SUFFIX</code> is added. Default is 1024. Set to any value; the only other useful value is probably 1000, as hard disk manufacturers use that number to make their disks sound bigger than they really are.</p>

<p>If the mode (see below) is set to &quot;iec&quot; or &quot;iec60027&quot; then setting the base option results in an error.</p>

</dd>
<dt id="mode">mode</dt>
<dd>

<p>Traditionally, bytes have been given in SI (metric) units such as &quot;kilo&quot; and &quot;mega&quot; even though they represent powers of 2 (1024, etc.) rather than powers of 10 (1000, etc.) This &quot;binary prefix&quot; causes much confusion in consumer products where &quot;GB&quot; may mean either 1,048,576 or 1,000,000, for example. The International Electrotechnical Commission has created standard IEC 60027 to introduce prefixes Ki, Mi, Gi, etc. (&quot;kibibytes,&quot; &quot;mebibytes,&quot; &quot;gibibytes,&quot; etc.) to remove this confusion. Specify a mode option with either &quot;traditional&quot; or &quot;iec60027&quot; (or abbreviate as &quot;trad&quot; or &quot;iec&quot;) to indicate which type of binary prefix you want format_bytes to use. For backward compatibility, &quot;traditional&quot; is the default. See http://en.wikipedia.org/wiki/Binary_prefix for more information.</p>

</dd>
</dl>

</dd>
<dt id="unformat_number($formatted)"><a id="unformat_number"></a><a id="unformat_number-formatted"></a>unformat_number($formatted)</dt>
<dd>

<p>Converts a string as returned by <code>format_number()</code>, <code>format_price()</code>, or <code>format_picture()</code>, and returns the corresponding value as a numeric scalar. Returns <code>undef</code> if the number does not contain any digits. Examples:</p>

<pre><code>  unformat_number(&#39;USD 12.95&#39;)   yields   12.95
  unformat_number(&#39;USD 12.00&#39;)   yields   12
  unformat_number(&#39;foobar&#39;)      yields   undef
  unformat_number(&#39;1234-567@.8&#39;) yields   1234567.8</code></pre>

<p>The value of <code>DECIMAL_POINT</code> is used to determine where to separate the integer and decimal portions of the input. All other non-digit characters, including but not limited to <code>INT_CURR_SYMBOL</code> and <code>THOUSANDS_SEP</code>, are removed.</p>

<p>If the number matches the pattern of <code>NEG_FORMAT</code> <i>or</i> there is a ``-&#39;&#39; character before any of the digits, then a negative number is returned.</p>

<p>If the number ends with the <code>KILO_SUFFIX</code>, <code>KIBI_SUFFIX</code>, <code>MEGA_SUFFIX</code>, <code>MEBI_SUFFIX</code>, <code>GIGA_SUFFIX</code>, or <code>GIBI_SUFFIX</code> characters, then the number returned will be multiplied by the appropriate multiple of 1024 (or if the base option is given, by the multiple of that value) as appropriate. Examples:</p>

<pre><code>  unformat_number(&quot;4K&quot;, base =&gt; 1024)   yields  4096
  unformat_number(&quot;4K&quot;, base =&gt; 1000)   yields  4000
  unformat_number(&quot;4KiB&quot;, base =&gt; 1024) yields  4096
  unformat_number(&quot;4G&quot;)                 yields  4294967296</code></pre>

</dd>
</dl>

<h1 id="CAVEATS">CAVEATS</h1>

<p>Some systems, notably OpenBSD, may have incomplete locale support. Using this module together with <a href="http://man.he.net/man3/setlocale">setlocale(3)</a> in OpenBSD may therefore not produce the intended results.</p>

<h1 id="BUGS">BUGS</h1>

<p>No known bugs at this time. Report bugs using the CPAN request tracker at <a href="https://rt.cpan.org/NoAuth/Bugs.html?Dist=Number-Format">https://rt.cpan.org/NoAuth/Bugs.html?Dist=Number-Format</a> or by email to the author.</p>

<h1 id="AUTHOR">AUTHOR</h1>

<p>William R. Ward, SwPrAwM@cpan.org (remove &quot;SPAM&quot; before sending email, leaving only my initials)</p>

<h1 id="SEE-ALSO"><a id="SEE"></a>SEE ALSO</h1>

<p>perl(1).</p></div>

<div id="metacpan_install-instructions-dialog" class="modal fade">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title">Module Install Instructions</h4>
      </div>
      <div class="modal-body">
        <p>To install Number::Format, copy and paste the appropriate command in to your terminal.</p>
        <p><a href="https://metacpan.org/dist/App-cpanminus/view/bin/cpanm">cpanm</a></p>
        <pre><code>cpanm Number::Format</code></pre>
        <p><a href="https://metacpan.org/pod/CPAN">CPAN shell</a></p>
        <pre><code>perl -MCPAN -e shell
install Number::Format</code></pre>
        <p>For more information on module installation, please visit <a href="https://www.cpan.org/modules/INSTALL.html">the detailed CPAN module installation guide</a>.</p>
      </div>
      <div class="modal-footer">
        <a href="./Number::Format.html#" data-dismiss="modal" class="btn">Close</a>
      </div>
    </div>
  </div>
</div>
          </main>
          <div class="content-pagination">
          </div>
        </div>
        <footer class="footer">
          <div class="footer-container">
            <div class="footer-social">
              <div class="footer-link footer-logo">
                <a href="https://metacpan.org/">
                  <img src="https://metacpan.org/static/images/metacpan-logo.svg" alt="MetaCPAN" />
                </a>
              </div>
              <a class="footer-social-link" href="https://github.com/metacpan">
                <i class="fab fa-github-square"></i>
              </a>
              <a class="footer-social-link" href="https://fosstodon.org/@metacpan">
                <i class="fab fa-mastodon"></i>
              </a>
            </div>
            <div class="footer-links">
              <div class="footer-link">
                  <a href="https://metacpan.org/about">About</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/sponsors">Sponsor</a>
              </div>
              <div class="footer-link">
                  <a href="https://grep.metacpan.org">grep::cpan</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/recent">Recent</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/about/faq">FAQ</a>
              </div>
              <div class="footer-link">
                  <a href="https://metacpan.org/tools">Tools</a>
              </div>
              <div class="footer-link">
                  <a href="https://fastapi.metacpan.org/">API</a>
              </div>
              <div class="footer-link">
                  <a href="https://www.perl.org/">Perl.org</a>
              </div>
            </div>
            <div class="footer-sponsors">
              <a class="footer-sponsor-link" target="_blank" href="https://www.bytemark.co.uk/" rel="noopener">
                <img class="footer-sponsor-bytemark" src="https://metacpan.org/static/images/sponsors/bytemark_logo.svg" alt="Bytemark logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.liquidweb.com/" rel="noopener">
                <img class="footer-sponsor-liquidweb" src="https://metacpan.org/static/images/sponsors/liquidweb_logo.png" alt="liquidweb logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://deriv.com/careers/" rel="noopener">
                <img class="footer-sponsor-deriv" src="https://metacpan.org/static/images/sponsors/deriv.svg" alt="Deriv logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://geocode.xyz" rel="noopener">
                <img class="footer-sponsor-geocode" src="https://metacpan.org/static/images/sponsors/geocodelogo.svg" alt="Geocode logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://www.fastly.com/" rel="noopener">
                <img class="footer-sponsor-fastly" src="https://metacpan.org/static/images/sponsors/fastly_logo.svg" alt="Fastly logo">
              </a>
              <a class="footer-sponsor-link" target="_blank" href="https://opencagedata.com" rel="noopener">
                <img class="footer-sponsor-opencage" src="https://metacpan.org/static/images/sponsors/open-cage.svg" alt="OpenCage logo">
              </a>
            </div>
          </div>
        </footer>
        <div class="modal fade" tabindex="-1" role="dialog" id="metacpan_keyboard-shortcuts">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">Keyboard Shortcuts</h4>
              </div>
              <div class="modal-body row">
<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Global</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>s</kbd>
        </td>
        <td>Focus search bar</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>?</kbd>
        </td>
        <td>Bring up this help dialog</td>
      </tr>
    </tbody>
  </table>

  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>GitHub</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>p</kbd>
        </td>
        <td>Go to pull requests</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>go to github issues (only if github is preferred repository)</td>
      </tr>
    </tbody>
  </table>
</div>

<div class="col-md-6">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>POD</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>a</kbd>
        </td>
        <td>Go to author</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>c</kbd>
        </td>
        <td>Go to changes</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>i</kbd>
        </td>
        <td>Go to issues</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>d</kbd>
        </td>
        <td>Go to dist</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>r</kbd>
        </td>
        <td>Go to repository/SCM</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>s</kbd>
        </td>
        <td>Go to source</td>
      </tr>
      <tr>
        <td class="keys">
          <kbd>g</kbd> <kbd>b</kbd>
        </td>
        <td>Go to file browse</td>
      </tr>

    </tbody>
  </table>
</div>

<div class="col-md-12">
  <table class="table keyboard-shortcuts">
    <thead>
      <tr>
        <th></th>
        <th>Search terms</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><em>module:</em> (e.g. <a href="https://metacpan.org/search?q=module%3APlugin">module:Plugin</a>)</td>
      </tr>
      <tr>
        <td><em>distribution:</em> (e.g. <a href="https://metacpan.org/search?q=distribution%3ADancer+auth">distribution:Dancer auth</a>)</td>
      </tr>
      <tr>
        <td><em>author:</em> (e.g. <a href="https://metacpan.org/search?q=author%3ASONGMU+Redis">author:SONGMU Redis</a>)</td>
      </tr>
      <tr>
        <td><em>version:</em> (e.g. <a href="https://metacpan.org/search?q=version%3A1.00">version:1.00</a>)</td>
      </tr>
    </tbody>
  </table>
</div>
              </div>
              <div class="modal-footer"></div>
            </div>
          </div>
        </div>
    </body>
</html>
